home *** CD-ROM | disk | FTP | other *** search
- From: Chudail@msn.com (Manish Katyal)
- Subject: Question:Stacks, Heaps, DGROUPs and other horrors
- Date: 3 Jan 96 02:34:02 -0800
- Message-ID: <00001a81+000086de@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c++
- Organization: The Microsoft Network (msn.com)
-
- Hi,
- I'm using VC++ 1.5.
- I keep getting the error : Automatic data segment plus Heap size exceeds 64K.
- To resolve this, in my DEF file I now have
- HEAP MAXVAL
- STACK 15000
-
- My question is :
- 1) HEAP + STACK + DGROUP == 64K ????
- And if so, which one of these do I want more of ???
- Also, am I right in the assumption that dynamically created objects
- are placed on the HEAP and Compiler created objs on the stack ???
-
- 2) My app is one huge single obj ( placed all my classes and their
- member functions in header files and included them in my main file).
- So, is there an advantage in splitting the obj into several objs
- other than the obvious advantages of faster compiling and linking
- ???? Do each of the objs have their own HEAP/STACK whatever ????
-
- I'd appreciate your comments,
- Manish K.
-
- PS: I'm using the large memory model.
-